import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

const server:any={
  open:true,
  proxy:{
    '/api':{
      target:"https://v.api.aa1.cn/api/",
      changeOrigin:true,
      rewrite:(path)=>path.replace(/^\/api/,"") 
    }
  }
}
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server
})
